<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>用户登录</title>
</head>
<script src="jquery-3.5.1.min.js"></script>
<script>
    $(function(){
    $("#login").click(function(){
    var myName=$("#fname").val();
    var myPassword=$("#fpassword").val();
    obj.login(myName,myPassword);
    });

    });
</script>
<body>
<p id="title" style="text-align:center">标题</p >
<form  name="myForm" style="margin:0 auto;border: 1px;">
    <div style="margin:0 auto; text-align:center">
        账号: <input type="text" id="fname"><br/>
        密码: <input type="password" id="fpassword"><br/>
        <input type="submit" value="提交" id="login">
    </div>
</form>
</body>
</html>